<template>
	<view class="tui-product-list">
		<view class="tui-product-container">
			<block v-for="(item, index) in value" :key="index">
				<!--商品列表-->
				<view class="tui-pro-item" hover-class="hover" :hover-start-time="150" @click="onTargetDetail(item.goods_id)">
					<image :src="$util.img(item.goods_image)" class="tui-pro-img" mode="widthFix" />
					<view class="tui-pro-content">
						<view class="tui-pro-tit">{{ item.goods_name }}</view>
						<view>
							<view class="tui-pro-price">
								<text class="tui-sale-price">￥{{ item.goods_price }}</text>
								<!-- <text class="tui-factory-price">￥0.00</text> -->
							</view>
							<!-- <view class="tui-pro-pay">3人付款</view> -->
						</view>
					</view>
				</view>
				<!--商品列表-->
				<!-- <template is="productItem" data="{{item,index:index}}" /> -->
			</block>
		</view>
				
	</view>
</template>

<script>
	export default {
		name:"lrw-m_goods_floor_s1",
		props: {
			value: {
				type:Array
			}
		},
		methods: {
			// 跳转商品详情页
			onTargetDetail(goodsId) {
			  this.$navTo('pages/goods/detail', { goodsId })
			},
		}
	}
</script>

<style lang="scss" scoped>

	.tui-product-list {
		display: flex;
		justify-content: space-around;
		flex-direction: row;
		flex-wrap: wrap;
		box-sizing: border-box;
		/* padding-top: 20rpx; */
	}

	.tui-product-container {
		/* flex: 1; */
		/* margin-right: 2%; */
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}



	.tui-pro-item {
		width: 47%;
		margin-bottom: 4%;
		background: #fff;
		box-sizing: border-box;
		border-radius: 12rpx;
		overflow: hidden;
	}

	.tui-pro-img {
		width: 100%;
		display: block;
	}

	.tui-pro-content {
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		box-sizing: border-box;
		padding: 20rpx;
	}

	.tui-pro-tit {
		color: #2e2e2e;
		font-size: 26rpx;
		word-break: break-all;
		overflow: hidden;
		text-overflow: ellipsis;
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
	}

	.tui-pro-price {
		padding-top: 18rpx;
	}

	.tui-sale-price {
		font-size: 34rpx;
		font-weight: 500;
		color: #e41f19;
	}

	.tui-factory-price {
		font-size: 24rpx;
		color: #a0a0a0;
		text-decoration: line-through;
		padding-left: 12rpx;
	}

	.tui-pro-pay {
		padding-top: 10rpx;
		font-size: 24rpx;
		color: #656565;
	}
</style>
